package com.luomo.java.jvm;

/**
 * @author LiuMei
 * @date 2021-04-08.
 */
public class RefCountGC {

    private byte[] bigSize = new byte[2 * 1024 * 1024];

    Object instance = null;

    public static void main(String[] args) {
        RefCountGC a = new RefCountGC();
        RefCountGC b = new RefCountGC();
        a.instance = b;
        b.instance = a;
        a = null;
        b = null;
        System.gc();
    }

}
